package cn.talkimages.web.admin.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.talkimages.web.beans.KeywordBean;

/**
 * For 关键字 Operation
 */
public interface KeywordDAO {

	/**
	 * 取得比配关键字信息Count数
	 * 
	 * @param params
	 * @return List<KeywordBean>
	 * @throws SQLException
	 */
	Long selectKeywordInfosCount(Map<String, Object> params)
			throws SQLException;

	/**
	 * 根据Keyword编号取得详细信息
	 * 
	 * @param id
	 * @return KeywordBean
	 * @throws SQLException
	 */
	KeywordBean selectKeywordById(@Param("id") Long id) throws SQLException;

	/**
	 * 取得比配关键字信息
	 * 
	 * @param params
	 * @return List<KeywordBean>
	 * @throws SQLException
	 */
	List<KeywordBean> selectKeywordInfos(Map<String, Object> params)
			throws SQLException;

	/**
	 * 创建关键字
	 * 
	 * @param keyword
	 * @throws SQLException
	 */
	void insertKeyword(KeywordBean keyword) throws SQLException;

	/**
	 * 根据ID,更新关键字
	 * 
	 * @param keyword
	 * @return Long(更新Row数)
	 * @throws SQLException
	 */
	Integer updateKeywordById(KeywordBean keyword) throws SQLException;

}
